<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>
    <title>房屋信息详情</title>
  </head>
   <script type="text/javascript">
  	function checkForm(){
  		var form = document.getElementById("form");
  		form.submit();
  		var submit1 = document.getElementById("submit");
  		submit1.disabled = true;
  		
  	}
  </script>
  <body>
  	<div align="center">
	    	<table border="0" cellpadding="0" width="50%" align="center">
	    		<tr>
	    			<td width="20%">房屋描述:</td>
	    			<td align="left" colspan="3">
	    				${room.roomName}
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">出租金额:</td><td align="left">${room.rentPrice}</td>
	    			<td width="20%">房屋面积:</td><td align="left">${room.roomSize}</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">楼层:</td><td align="left">第${room.floor}层</td>
	    			<td width="20%">房间号:</td><td align="left">${room.roomNum}</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">户型:</td><td align="left">${room.roomType}</td>
	    			<td width="20%">阳台个数:</td><td align="left">${room.balconyNum}个</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">是否有厨房:</td>
	    			<td align="left">
	    				<s:if test="%{room.isCookhouse == 0}">没有</s:if>
	    				<s:if test="%{room.isCookhouse == 1}">有</s:if>
	    			</td>
	    			<td width="20%">厕所个数:</td>
    				<td align="left">
    					<s:if test="%{room.toiletNum == 0}">共用</s:if>
    					<s:else>${room.toiletNum}个</s:else>
    				</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">光线星级:</td>
	    			<td align="left">
    						${room.sunLine}个
    				</td>
	    			<td width="20%">手机信号:</td>
	    			<td align="left">
    						${room.phoneLevel}星
    				</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">网络方式:</td><td align="left">
	    				<s:if test="%{room.network == 0}">小区网</s:if>
	    				<s:elseif test="%{room.network == 1}">有宽带</s:elseif>
	    				<s:elseif test="%{room.network == 3}">自己联系</s:elseif>
	    			</td>
	    			<td width="20%">环境级别:</td><td align="left">
	    				${room.envLevel}级
	    			</td>
	    		</tr>
	    		
	    		<tr>
	    			<td width="20%">出租类型:</td><td align="left">
	    					<s:if test="%{room.rentType == 0}">整租</s:if>
	    					<s:elseif test="%{room.rentType == 1}">合租</s:elseif>
	    			</td>
	    			<td width="20%">押金类型:</td><td align="left">
	    				<s:if test="%{room.guaranteeType == 0}">押一付一</s:if>
	    				<s:elseif test="%{room.rentType == 1}">押二付一</s:elseif>
	    				<s:elseif test="%{room.rentType == 2}">押三付一</s:elseif>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">详细地址:</td><td align="left" colspan="3">${room.roomAddress}</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">介绍:</td><td align="left" colspan="3">${room.roomDesc}</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">房屋图片:</td><td align="left" colspan="3"><input name="roomPic" type="file" id="roomPic"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">家电配置:</td><td align="left" colspan="3">${room.household}</td>
	    		</tr>
				<tr align="center"> <td colspan="4"><br><input type="button"  id="button1" value="关闭" onclick="window.close();" /></td></tr>
			</table>
    </div>
  </body>
</html>
